<include file="Public:header"/>
<style>
    .H{
        color:red;
        font-size: 16px;
    }
</style>
<div id="search_container">
    <div id="search_top"></div>
    <div id="search_main">
        <div class="search_input_container">
            <div class="search_message"></div>
            <div class="input_box">
                <div class="input_keywords">
                    <input type="text" name="keywords" id="keywords" value="{$Think.get.keyword|urldecode}"/>
                </div>
                <div class="btn_click" id="click_step1">
                    <img src="../Public/images/search_input_button.png" />
                </div>
                <span id="taobao_message"></span>
            </div>
        </div>
        <div class="search_input_result">
            <volist name="list" id="vo">
                <div class="goods">
                    <div id="image" class="image">
                        <a title="{$vo['title']}" target="_blank" href="__ROOT__/vitem-{$vo['num_iid']}.html">
                            <img alt="{$vo['title']}" src="{$vo['pic_url']}">
                        </a>
                    </div>
                    <p id="title">
                        <a title="{$vo['title']}" target="_blank" href="__ROOT__/vitem-{$vo['num_iid']}.html">{$vo['title']}</a>
                    </p>
                    <p id="ori_price">原价：{$vo['price']}元&nbsp;&nbsp;返利：<span class="H">{$vo['commission']}</span>元</p>
                    <p id="ori_price">{$vo['nick']}&nbsp;<img alt="{$vo['nick']}_寻利淘" src="{$vo['seller_credit_score']|getLevel}"/>&nbsp;&nbsp;所在地:{$vo['item_location']}</p>
                    <p id="ori_price">已售：{$vo['commission_num']}件</p>
                    <div id="discount" class="discount">
                	发现商品隐藏折扣
                        <br>
                        <span><php>echo number_format($vo['commission_rate']*0.01,2);</php>%</span>
                    </div>
                </div>
            </volist>
            <div class="pager"><a title="{$vo['title']}上一页" href="<php>echo $_REQUEST['page']>1?'?page='.(intval($_REQUEST['page'])-1):'#';</php>">上一页</a><a title="{$vo['title']}下一页" href="?page=<php>echo intval($_REQUEST['page'])?intval($_REQUEST['page'])+1:2;</php>">下一页</a></div>
        </div>
    </div>
    <div id="search_bottom"></div>
</div>
<script>
    $("#click_step1").bind("click",
    function() {
        $.keywords = $("#keywords").val();
        if ($.keywords == '') {
            $('#taobao_message').html('请输入淘宝商品名称、关键字或网址！');
            return;
        }
        step1($.keywords);
    });
</script>
<include file="Public:footer"/>